<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="./lib/vue.js" type="text/javascript" charset="utf-8"></script>
        <title>Document</title>
    </head>
    <body>
        <div id="app">
            <input type="text" v-model="msg">
            <h1>{{ msg }}</h1>
            <button @click="changeEvent">修改Msg</button>
        </div>
    </body>
    <script>
        let app = new Vue({
            el:"#app",
            data:{
                msg:'haha'
            },
            methods: {
                changeEvent:function(){
                    this.msg = "修改Msg数据为:hello vue"
                }
            }
        })
        console.log(app);
    </script>
</html>